<!-- 我的弹窗 -->

<template>
  <WebModal>
    <WebForm word5>
      <EasyRow col2>
        <FormSelect label="证书类型" bind="certificateType" :dict="CORE.DICT.certificate_type" required />
        <FormInput label="证书编号" bind="certificateNo" required />
      </EasyRow>

      <EasyRow col2>
        <FormInput label="持证人" bind="personName" :max="10" required />
        <FormTree :label="`所属${CORE.MAP.ORGAN}`" bind="orgId" :dict="CORE.ORGAN.DICT" required />
      </EasyRow>

      <EasyRow col2>
        <FormDateRange label="证书有效期" bind="startTime, endTime" required />
      </EasyRow>

      <EasyRow col2>
        <EasyRow col8>
          <FormSwitch label="过期提醒" bind="expirationRemind" eighth3 />
          <FormNum
            v-if="one.expirationRemind === 1"
            label="提前"
            bind="remindDay"
            :min="0"
            :max="9999"
            initMin
            suffix="天"
            word2
            half
          />
        </EasyRow>
        <MyUser v-if="one.expirationRemind === 1" />
      </EasyRow>

      <FormFile label="电子版本" bind="fileList" folder="certificate" :max="5" :limit="10" required />
    </WebForm>
  </WebModal>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyModal',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb()],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),
}
</script>
